import request from '@/utils/request'

// 查询满意度调查结果列表
export function listSatisfactionSurvey(query) {
  return request({
    url: '/training/satisfactionSurvey/list',
    method: 'get',
    params: query
  })
}

// 查询满意度调查结果详细
export function getSatisfactionSurvey(satisfactionSurveyId) {
  return request({
    url: '/training/satisfactionSurvey/' + satisfactionSurveyId,
    method: 'get'
  })
}

// 新增满意度调查结果
export function addSatisfactionSurvey(data) {
  return request({
    url: '/training/satisfactionSurvey',
    method: 'post',
    data: data
  })
}

// 修改满意度调查结果
export function updateSatisfactionSurvey(data) {
  return request({
    url: '/training/satisfactionSurvey',
    method: 'put',
    data: data
  })
}

// 删除满意度调查结果
export function delSatisfactionSurvey(satisfactionSurveyId) {
  return request({
    url: '/training/satisfactionSurvey/' + satisfactionSurveyId,
    method: 'delete'
  })
}

// 查询满意度调查结果列表
export function listBySatisfactionSurveyDto(query) {
  return request({
    url: '/training/satisfactionSurvey/listBySatisfactionSurveyDto',
    method: 'get',
    params: query
  })
}
